﻿using log4net.Core;
using Newtonsoft.Json;
using SqlSugar;
using System.Linq.Expressions;
using System.Threading.Tasks;

namespace WLYT.Repository
{
    /// <summary>
    /// 使用SqlSugar仓储SimpleClient
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class SqlSugarRepository<T> : SimpleClient<T>, ISqlSugarRepository<T> where T : class, new()
    {
        public SqlSugarScope Db { get; set; }//用来处理事务多表查询和复杂的操作
        public SqlSugarRepository()
        {
            base.Context = DbContext.Db;
            Db = DbContext.Db;
        }
    }
}